<h1>Tags</h1>

<p>Displaying <%= pluralize @tags.size, 'tag' %>.</p>

<ul>
  <% for tag in @tags %>
  <li><%= link_to tag.name, tag_url(tag) %>
    :<%= pluralize tag.tagged.size, 'article' %>,
    <% if logged_in? -%>
    (<%= link_to "Delete", tag_url(tag), :confirm => "Are you sure?", :method => :delete, :href => delete_tag_url(tag) %>)
    <% end -%>
  </li>
  <% end %>
</ul>
